package lab02.test14;

/**
 * Created by dell on 2017/10/29.
 */
public class Circle extends Shape{

    //属性：半径
    double radius;

    //行为：赋值，面积
    Circle(double z){

        radius=z;
    }

    @Override
    double getArea() {

        return 3.14*radius*radius;
    }
}
